package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljc
 * @since 2023-03-10
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("t_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券随机名字
     */
    private String name;

    /**
     * 使用范围
     */
    private String rangem;

    /**
     * 优惠金额
     */
    private Integer sumall;

    /**
     * 创建时间
     */
    private Date date;

    /**
     * 有效期
     */
    private String lifespan;

    /**
     * 是否领取 0为未领取
     */
    private Integer status;

}
